import request from '@/utils/request'

// 查询耳标申请列表
export function listVa(query) {
  return request({
    url: '/dgw/va/list',
    method: 'get',
    params: query
  })
}

// 查询耳标申请详细
export function getVa(id) {
  return request({
    url: '/dgw/va/' + id,
    method: 'get'
  })
}

// 新增耳标申请
export function addVa(data) {
  return request({
    url: '/dgw/va',
    method: 'post',
    data: data
  })
}

// 修改耳标申请
export function updateVa(data) {
  return request({
    url: '/dgw/va',
    method: 'put',
    data: data
  })
}

// 删除耳标申请
export function delVa(id) {
  return request({
    url: '/dgw/va/' + id,
    method: 'delete'
  })
}

// 导出耳标申请
export function exportVa(query) {
  return request({
    url: '/dgw/va/export',
    method: 'get',
    params: query
  })
}
// 导出耳标申请
export function queryVillage(query) {
  return request({
    url: '/dgw/va/queryVillage',
    method: 'get',
    params: query
  })
}

export function queryCunVillage(query) {
  return request({
    url: '/dgw/va/queryCunVillage',
    method: 'get',
    params: query
  })
}
